package com.lxm.ymcc;

import com.lxm.ymcc.domain.CourseDoc;
import com.lxm.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/*
    1.导包
 */
@FeignClient(value = "service-search",fallback = SearchControllerFallBack.class)
public interface EsSearchServerFeign {
    @PostMapping("/search/save")
    public JSONResult save(@RequestBody CourseDoc doc);

    @PostMapping("/search/del/{id}")
    public JSONResult del(@PathVariable("id") Long id);


}

